package com.sunthy.mall.model.admin.pojo.order;


import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 这是对应数据库的数据锁创建的Bean类
 */
public class Orders {
    static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    private Integer id;         // order的 id
    private Integer userId;     // user的 id
    private String nickname;    // user的 name
    private String receiver;    // 收货人
    private String address;     // 收获地址
    private String phone;       // 电话号码
    private String product;     // 商品名字
    private Integer productId;  // 商品的 id
    private String spec;        // 商品的 spec
    private Integer specId;     // 商品的 id
    private Integer number;     // 商品数量
    private Double amount;      // 商品价格
    private Integer stateId;    // state(订单状态码)-1 0 1 2 3
    private Date createtime;    // 创建时间
    private Date updatetime;    // 修改时间
    private Integer hasComment; // 评论


    public Orders(Integer id,
                  Integer userId,
                  String nickname,
                  String receiver,
                  String address,
                  String phone,
                  String product,
                  Integer productId,
                  String spec,
                  Integer specId,
                  Integer number,
                  Double amount,
                  Integer stateId,
                  Integer hasComment) {
        this.id = id;
        this.userId = userId;
        this.nickname = nickname;
        this.receiver = receiver;
        this.address = address;
        this.phone = phone;
        this.product = product;
        this.productId = productId;
        this.spec = spec;
        this.specId = specId;
        this.number = number;
        this.amount = amount;
        this.stateId = stateId;

        this.createtime = new Date();


        this.hasComment = hasComment;
    }


    public Orders(Integer id, Integer userId, String nickname, String recipient, String address, String phone, String name, Integer goodsId, String specName, Integer specId, Integer num, Double amount, Integer state, java.util.Date date, java.util.Date date1, int hasComment) {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public Integer getSpecId() {
        return specId;
    }

    public void setSpecId(Integer specId) {
        this.specId = specId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getStateId() {
        return stateId;
    }

    public void setStateId(Integer stateId) {
        this.stateId = stateId;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getHasComment() {
        return hasComment;
    }

    public void setHasComment(Integer hasComment) {
        this.hasComment = hasComment;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
